#import state

class  PCB:
    


    
        
    def __init__(self, pid, pc, prio, nombre, pSize):
        self.pid = pid
        self.pc = pc
        self.priority = prio
        self.name = nombre
        self.size = pSize
#        self.state = state.State().ready


    def incrementPc(self):
        self.pc = self.pc + 1

        
        
    def __repr__(self):
        return '[pcb: %s - %s - %s]' % (self.pid, self.pc, self.priority)

'''
TEST 
   
def main():

    pcb1 = PCB(1,0,1)
    pcb2 = PCB(2,0,3)
    pcb3 = PCB(3,0,2)
    
    
    q=[pcb1,pcb2,pcb3]
    q=sorted(q, key= lambda pcb: pcb.priority)
    print q.pop()
    
if __name__ == "__main__":
    main()
'''